package com.sd.repay.service;

import com.sd.repay.common.CommonResult;
import com.sd.repay.pojo.MerchantUser;

import java.util.List;
import java.util.Map;

/**
 * Created by sd on 2018/08/21
 */
public interface MerchantService {

    Map<String, Object> getMerInfoByMerNo(String merchantNo) throws Exception;

    int addMerchantInfo(Map<String, String> params) throws Exception;

    int updateMerRank(String merchantNo, String oldMerRank, String newMerRank) throws Exception;

    CommonResult promoteMerRankInfo(String merchantNo, String toRankCode) throws Exception;

    Map<String, Object> getMerInfoByMobileAndOem(String mobileNo, String oemType) throws Exception;

    MerchantUser getMerObjectByMobileAndOem(String mobileNo, String oemType) throws Exception;

    Map<String, String> getAgentNodeFeeByMerNo(String merchantNo, String repayType) throws Exception;

    int updateMerAuthInfo(String merchantNo, String realName, String idCardNo, String address, String filePath) throws Exception;

    List<Map<String, Object>> getSubMerchant(String oemType, String merchantNo) throws Exception;

    MerchantUser getMerObjectByMerchantNoAndPwd(String oemType, String merchantNo, String loginPwd) throws Exception;

    int updateMerchantLoginPwd(String oemType, String merchantNo, String newLoginPwd) throws Exception;
}
